package lowijs.XfireClient.packet;


public class NewVersionPacket extends Packet {
	public static int[] getVersions(byte[] buffer) {
		int count = (int)((buffer[13] | (buffer[14] << 8)) & 0xFFFF);
		int[] versions = new int[count];

		int j = 15;
		for (int i=0; i<count; i++) {
			versions[i] = (int)((buffer[j] | (buffer[j+1] << 8) | (buffer[j+2] << 16) | (buffer[j+3] << 24)) & 0xFFFFFFFF);
		}

		return versions;
	}
}
